import { axios } from '@/utils/request'

/**
 * 查询linux服务端
 *
 * @author gyp
 * @date 2022-04-24 10:22:02
 */
export function sysMntServerPage (parameter) {
  return axios({
    url: '/sysMntServer/page',
    method: 'get',
    params: parameter
  })
}

/**
 * linux服务端列表
 *
 * @author gyp
 * @date 2022-04-24 10:22:02
 */
export function sysMntServerList (parameter) {
  return axios({
    url: '/sysMntServer/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加linux服务端
 *
 * @author gyp
 * @date 2022-04-24 10:22:02
 */
export function sysMntServerAdd (parameter) {
  return axios({
    url: '/sysMntServer/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑linux服务端
 *
 * @author gyp
 * @date 2022-04-24 10:22:02
 */
export function sysMntServerEdit (parameter) {
  return axios({
    url: '/sysMntServer/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除linux服务端
 *
 * @author gyp
 * @date 2022-04-24 10:22:02
 */
export function sysMntServerDelete (parameter) {
  return axios({
    url: '/sysMntServer/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出linux服务端
 *
 * @author gyp
 * @date 2022-04-24 10:22:02
 */
export function sysMntServerExport (parameter) {
  return axios({
    url: '/sysMntServer/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

/**
 * 添加linux服务端
 *
 * @author gyp
 * @date 2022-04-24 10:22:02
 */
 export function testConnect (parameter) {
  return axios({
    url: '/sysMntServer/testConnect',
    method: 'post',
    data: parameter
  })
}
